FUNCTION

validate_auth_descriptor_args

function validate_auth_descriptor_args(auth_descriptor: auth_descriptor)

Checks if the auth descriptor args correspond to single_sig_args or multi_sig_args, based on the descriptor's auth_type

Throws "MULTISIG NEGATIVE REQUIREMENT" if a multi-sig auth descriptor's required_signatures is 0 or less

Throws "MULTISIG REQUIREMENT TOO HIGH" if a multi-sig auth descriptor's required_signature parameter is greater than the number of signers

Throws "UNSUPPORTED SIGNER" if the signer's size does not match either:

  • EVM_ADDRESS_SIZE length of 20 bytes
  • FT_PUBKEY_SIZE length of 33 bytes

Parameters

  • auth_descriptor — the auth descriptor to check
© 2024 Chromia